<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
<%request.setCharacterEncoding("utf-8"); %>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
	<meta http-equiv="expires" content="Wed, 26 Feb 1970 08:21:57 GMT" />
	<title>Shop 管理中心 - 修改资料 </title>
	<link href="styles/general.css" rel="stylesheet" type="text/css" />
	<link href="styles/main.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/user.js"></script>
</head>
<body>
<h1>
<span class="action-span"><a href="Admin_Show.jsp">资料显示</a></span>
<span class="action-span"><a href="Admin_Edit.jsp">资料修改&nbsp;&nbsp;</a></span>
<span class="action-span"><a href="Admin_Editpass.jsp">密码修改</a>&nbsp;&nbsp;</span>
<span><a href="Admin_Main.jsp">Shop 管理中心</a>  - 管理员资料修改 </span>
</h1><div class="main-div1">
<table width="100%" class="btable">
    <tr>
        <td><form name="formEdit" action="<c:url value="/servlet/EditAdminServlet" />" method="post" onsubmit="return checkUpdateInfoForm();">
            <table cellspacing="0" class="tableList">
              <tr>
                <th width="100">用&nbsp;&nbsp;户&nbsp;&nbsp;名:</th>
                <td> <input name="suser" type="text" maxlength="30" readonly="readonly" value="${sessionScope.admin.suser}" /></td>
              </tr>
              <tr>
                <th>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:</th>
                <td>
                <c:choose>
                	<c:when test="${sessionScope.admin.ssex=='男'}">
                	<input type="radio" name="ssex" value="男" checked="checked" />男&nbsp;<input type="radio" name="ssex" value="女" />女
                	</c:when>
                	<c:otherwise>
                	<input type="radio" name="ssex" value="男" />男&nbsp;<input type="radio" name="ssex" value="女" checked="checked" />女
                	</c:otherwise>
                </c:choose>
                </td>
              </tr>
              <tr>
                <th>真实姓名:</th>
                <td>
                  <input name="sname" type="text" maxlength="30" value="${sessionScope.admin.sname}" /></td>
              </tr>
              <tr>
                <th width="100">出生日期:</th>
                <td> <input name="dbirth" type="text" maxlength="30" value="${sessionScope.admin.dbirth}" /></td>
              </tr>
              <tr>
                <th>电子邮箱:</th>
                <td><input name="semail" type="text" value="${sessionScope.admin.semail}" /></td>
              </tr>
              <tr>
                <th>电话号码:</th>
                <td><input name="sphone" type="text" value="${sessionScope.admin.sphone}" /></td>
              </tr>
              <tr>
                <th>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;址:</th>
                <td><input name="saddress" type="text" value="${sessionScope.admin.saddress}"/></td>
              </tr>
              <tr>
                <th>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编:</th>
                <td><input name="scode" type="text" value="${sessionScope.admin.scode}" /></td>
              </tr>
              <tr>
                <th>&nbsp;</th>
                <td>
                  <input type="hidden" name="fromPage" value="<c:url value="/Admin/Admin_Edit.jsp" />" />
                  <input type="hidden" name="act" value="edit" />
                  <input name="submit" type="submit" value="确定修改" />
                </td>
              </tr>
            </table>
          </form></td>
    </tr>
</table>
</div>
<div id="footer">版权所有 &copy;</div>
<c:if test="${!empty param.msg}">
	<script type="text/javascript" language="javascript">
		alert("${param.msg}");
		location.href="<c:url value='/Admin/Admin_Edit.jsp' />";
	</script>
</c:if>
  <script language="javascript">
        var email_empty = "Email地址不能为空";
        var email_format = "Email 地址无效";
		var phone_empty = "电话号码不能为空";
		var phone_format = "电话号码格式错误";
		var code_empty = "邮编不能为空";
		var code_format = "邮编只能是6位数字";
  </script>
</body>
</html>